<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑单词</title>
    <style>
        body {
            display: flex;
            flex-direction: column;
            /* justify-content: center; */
            align-items: center;
            min-height: 100vh;
            margin: 0;
        }

        form {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .form-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }
    </style>
</head>
<body>
    <h1>编辑单词</h1>
    <form action="/update_word" method="post">
        <input type="hidden" id="word_id" name="word_id" value="{{ word_id }}">
        <div class="form-group">
            <label for="chinese">汉字:</label>
            <input type="text" id="chinese" name="chinese" value="{{ chinese }}" required>
        </div>
        <div class="form-group">
            <label for="hiragana">平假名:</label>
            <input type="text" id="hiragana" name="hiragana" value="{{ hiragana }}" required>
        </div>
        <div class="form-group">
            <label for="category">分类:</label>
            <input type="text" id="category" name="category" value="{{ category }}" required>
        </div>
        <div class="form-group">
            <label for="meaning">中文释义:</label>
            <input type="text" id="meaning" name="meaning" value="{{ meaning }}" required>
        </div>
        <button type="submit">提交修改</button>
    </form>
</body>
</html>